-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix ray sink error when there are no data to write #2919
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Would you be willing to add a test for this?
We have ray integration tests here: https://github.com/lancedb/lance/blob/main/python/python/tests/test_ray.py |
(agree that a test would be useful) |
OK, I will add a test case later |
1e1e010
to
779254e
Compare
The new commit will not trigger the CI unit tests, please help me trigger it manually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the tests! A few small suggestions.
7f3b9df
to
a97595c
Compare
Reproduce python code:
When using the lance ray sink to write lance file, the empty sink which may be caused by filter operator in ray data will cause these exception.
The
on_write_complete
function assigns theschema
byfragments
. If there is nofragments
, theschema
will beNone